package com.tang.script.variable;

import java.math.BigDecimal;

public abstract class AbstractVariablesContainer implements VariablesContainer {
    @Override
    public Object getValue(Constant constant) {
        if (constant.getType() == VariablesType.number) {
            return new BigDecimal(constant.getValue());
        }

        return constant.getValue();
    }

    @Override
    public Object getValue(Variable variable) {
        return null;
    }
}
